package UIFree
{
	import flash.display.Sprite;
	import flash.errors.IllegalOperationError;
	import flash.system.LoaderContext;

	public class uif_content extends uif_loader {
		public function uif_content(a_parent:Sprite=null, URL:String='', a_onComplete:Function=null, context:LoaderContext=null) {
			super(a_parent, URL, a_onComplete, 0, 0, context);
		}
		
		public function loadClassDefinition(className: String): Class {
            var cls:Class = null;
            try{
                cls = contentLoaderInfo.applicationDomain.getDefinition(className) as Class;
                return cls;
            }catch(e:Error){
                throw new IllegalOperationError(className + " doesn't exist");
            }
            return cls;
		} 
	}
}